#FROM java:8
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ENV profile=prod
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
EXPOSE 9740
ENTRYPOINT ["java","-Dspring.profiles.active=${profile}","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]